﻿using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Data.Common;
using System.Linq;
using System.Threading.Tasks;

namespace WebApi.Domain
{
    public class AdminDB:DbContext
    {
        protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) 
        {
            optionsBuilder.UseSqlServer("server=.;database=Admin1000;uid=sa;pwd=123456");
        }



        public DbSet<Produce> Produces { get; set; }
        public DbSet<Brand> Brands { get; set; }
    }
}
